package com.yeung.exam;

// 本题为考试单行多行输入输出规范示例，无需提交，不计分。

import java.util.Scanner;

public class 超大数相加 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String s1 = in.nextLine();
        String s2 = in.nextLine();
        if (!s1.contains("."))
            s1 = s1 + ".";
        if (!s2.contains("."))
            s2 = s2 + ".";

        String[] spl1 = s1.split("\\.");
        String[] spl2 = s2.split("\\.");

        //左边对齐
        if (spl1[0].length() >= spl2[0].length()) {
            int sam = spl1[0].length() - spl2[0].length();
            while (sam > 0) {
                spl2[0] = "0" + spl2[0];
                sam--;
            }
        } else {
            int sam = spl2.length - spl1.length;
            while (sam > 0) {
                spl1[0] = "0" + spl1[0];
                sam--;
            }
        }
        //右边对齐
        if (spl1[1].length() >= spl2[1].length()) {
            int sam = spl1[1].length() - spl2[1].length();
            while (sam > 0) {
                spl2[1] = spl2[1] + "0";
                sam--;
            }
        } else {
            int sam = spl2[1].length() - spl1[1].length();
            while (sam > 0) {
                spl1[1] = spl1[1] + "0";
                sam--;
            }
        }
        char[] num1 = (spl1[0] + "." + spl1[1]).toCharArray();
        char[] num2 = (spl2[0] + "." + spl2[1]).toCharArray();
        //进行加和运行
        char[] sum = new char[num1.length];
        boolean add = false;
        for (int i = sum.length - 1; i >= 0; i--) {
            if (!String.valueOf(num1[i]).equals(".")) {
                Integer n1 = Integer.valueOf(String.valueOf(num1[i]));
                Integer n2 = Integer.valueOf(String.valueOf(num2[i]));
                int tmp = n1 + n2;
                if (add) {
                    tmp += 1;
                    add = false;
                }
                if (tmp >= 10) {
                    add = true;
                    int ttmp = tmp % 10;
                    sum[i] = (ttmp + "").charAt(0);
                } else {
                    sum[i] = (tmp + "").charAt(0);
                }

            } else
                sum[i] = '.';

        }
        //去除多余的0 头, 尾
        String result = new String(sum);
        while (result.startsWith("0")) result = result.substring(1);
        while (result.endsWith("0")) result = result.substring(0, result.length() - 1);
        System.out.println(result);

    }
}

//1234567890123456789012345678901234567890.1234567890123456789012345678901234567890
//1000000000100000000010000000001000000000.1000000000100000000010000000001000000000